import axios from 'axios'

// 请求获取天气id接口
export const getWeatherCityId = (name = '深圳') => {
	return axios.get(`https://geoapi.qweather.com/v2/city/lookup?location=${name}&key=c9ababc26a504434b6fc709c2005e503`)
}
// 请求获取天气接口
export const getWeather = (id: any) => {
	return axios.get(`https://devapi.qweather.com/v7/weather/now?location=${id}&key=c9ababc26a504434b6fc709c2005e503`)
}
// 请求获取Pm2P5接口
export const getWeatherPm2P5 = (id: any) => {
	return axios.get(`https://devapi.qweather.com/v7/air/now?location=${id}&key=c9ababc26a504434b6fc709c2005e503`)
}
